<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<base href="<%=basePath%>">
    
    <title>查询结果页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
</head>
<body>
<c:if test="${not empty teacher }">
  <table  class="table table-hover table-condensed">
		    <tr>
		    <td align="center">
					<strong>类别</strong>
				</td>
				<td align="center">
					<strong>工号</strong>
				</td>
				<td align="center">
					<strong>姓名</strong>
				</td>
				<td align="center">
					<strong>性别</strong>
				</td>
				<td align="center">
					<strong>年龄</strong>
				</td>
				<td align="center">
					<strong>电话</strong>
				</td>
				<td align="center">
					<strong>系别</strong>
				</td>
				<td align="center" >
					<strong>执行操作</strong>
				</td>
			</tr>
				<tr>
				<td align="center">
						<c:out value="${teacher.category}" />
					</td>
					<td align="center">
						<c:out value="${teacher.teNo}" />
					</td>
					<td align="center">
						<c:out value="${teacher.teName}" />
					</td>
					<td align="center">
						<c:out value="${teacher.teSex}" />
					</td>
					<td align="center">
						<c:out value="${teacher.teAge}" />
					</td>
					<td align="center">
						<c:out value="${teacher.teTel}" />
					</td>
					<td align="center">
						<c:out value="${teacher.teDept}" />
					</td>
					
					<td align="center">
						<a href="tedelete?teNo=${teacher.teNo}" class="btn btn-danger">删除</a>
						<a href="pre?method=updateTeacher&teNo=${teacher.teNo}" class="btn btn-primary">更新</a>
					</td>
				</tr>
	
		</table>
</c:if >
<c:if test="${empty teacher }">
        <center><font color="red" size="+1">对不起！没有该工号对应的教师....</font></center>
</c:if>
		<hr>
		<a href="Admin.jsp" class="btn btn-success">返回主菜单</a>
		<hr>
</body>
</html>